﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.WebPages;

namespace CasualisHTMLGames.Code {
    public abstract class Custom {
        public static void ConfigurationMapPagesForDevice() {
            DisplayModeProvider.Instance.Modes.Insert(0, new
                DefaultDisplayMode("Android") {
                    ContextCondition = (context => context.GetOverriddenUserAgent().IndexOf
                        ("android", StringComparison.OrdinalIgnoreCase) >= 0)
                });
            //DisplayModeProvider.Instance.Modes.Insert(0, new
            //    DefaultDisplayMode("iPhone") {
            //        ContextCondition = (context => context.GetOverriddenUserAgent().IndexOf
            //            ("iPhone", StringComparison.OrdinalIgnoreCase) >= 0)
            //    });
            //DisplayModeProvider.Instance.Modes.Insert(0, new
            //    DefaultDisplayMode("Mobile") {
            //        ContextCondition = (context => context.GetOverriddenUserAgent().IndexOf
            //            ("Mobile", StringComparison.OrdinalIgnoreCase) >= 0)
            //    });
        }
    }
}